<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>功能管理</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../../../component/elementUI/index.css">
  <link rel="stylesheet" href="../../../style/index.css">
</head>

<body>
  <div id="app" class="minWidth">
    <el-card style="background-color: white;">
      <el-form :inline="true" :form="form">
        <el-form-item label="功能名称:">
          <el-input placeholder="请输入功能名称" clearable @change="onSerach" v-model.trim="form.Sign_Type_Name"></el-input>
        </el-form-item>
      </el-form>
      <el-table :data="tableData" stripe border style="width: 100%" height="calc(100vh - 200px)">
        <el-table-column align="center" label="序号" width="50" type="index"></el-table-column>
        <el-table-column align="center" prop="Sign_Type_SerialNumber" label="流水号"></el-table-column>
        <el-table-column align="center" prop="Sign_Type_Name" label="签署类型"></el-table-column>
        <el-table-column align="center" prop="Sign_Type_Code" label="类型码值"></el-table-column>
        <el-table-column align="center" prop="Row_Status" label="启用状态">
          <template v-slot="{row}">
            <el-tag :type="row.Row_Status=='0'?'success':'danger'">
              {{row.Row_Status=='0'?'生效中':'未启用'}}
            </el-tag>
          </template>
        </el-table-column>
        <el-table-column align="center" prop="Contract_Table_SerialNumber" label="适用合同模板主键"></el-table-column>
        <el-table-column align="center" prop="Contract_Table_Name" label="适用合同模板"></el-table-column>
        <el-table-column align="center" label="操作" width="180">
          <template v-slot="{row}">
            <el-button v-if="row.Row_Status=='1'" type="success" size="small" @click="Edit(row.Sign_Type_SerialNumber)">启用</el-button>
            <el-button v-else type="warning" size="small" @click="Edit(row.Sign_Type_SerialNumber)">更新</el-button>
            <el-button v-if="row.Row_Status=='0'" type="danger" size="small" @click="Delete(row.Sign_Type_SerialNumber)">停用</el-button>
          </template>
        </el-table-column>
      </el-table>
      <el-pagination style="margin-top: 5px;" background v-show="total > 0" @size-change="handleSizeChange" @current-change="handleCurrentChange"
        :current-page="form.page" :page-sizes="[10, 20, 30, 50]" :page-size="form.limit"
        layout="total, sizes, prev, pager, next, jumper" :total="total">
      </el-pagination>
    </el-card>
  </div>
  <script type="text/javascript" src="../../../utils/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../../../utils/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../utils/vue.min.js"></script>
  <script type="text/javascript" src="../../../component/elementUI/index.js"></script>
  <script type="text/javascript" src="../../../utils/utils.js"></script>
  <script type="text/javascript" src="js/Contract.js"></script>
</body>

</html>